package Task32;

import java.util.ArrayList;
import java.util.Scanner;

public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int n = scanner.nextInt();
            int z = n;
            ArrayList<Integer> arrayList = new ArrayList<>();
            for (int i = 2; i <= Math.sqrt(n); i++) {
                if(n % i == 0){
                   while (n % i == 0){
                       arrayList.add(i);
                        n /= i;
                    }
                }
            }
            if(n != 1){
                arrayList.add(n);
            }

//            System.out.println(arrayList);
            System.out.print(z + "=");
            for (int i = 0; i < arrayList.size(); i++) {
                System.out.print(arrayList.get(i));
                if(i < arrayList.size() - 1){
                    System.out.print("*");
                }
            }
            System.out.println();
        }
    }
}
